package com.dfec.service;

import java.sql.SQLException;

import com.dfec.model.User;

public interface IUserService {
    //用户注册
	boolean doRegister(User user) throws SQLException ;
	//用户注册邮箱激活
	boolean activeUser(String code) throws SQLException;
	//判断邮箱是不是已经被使用
	boolean cheakUserByEmail(User user) throws SQLException ;
    //检查邮件是否合法	
	boolean cheakEmail(String email);
	//token 验证
	boolean  cheakToken(User user);
	//用户登录
	User  login(User user);
	//检测用户手机号是否被使用
	User  getUserByPhone(User user);
	//更新用户头像
	boolean updateUserIcon(User user,String url)throws SQLException;
	//更新用户信息
	boolean updateUser(User user) throws SQLException;
	
	//检测用户手机号是否被使用
    User  getUserById(User user) throws SQLException;
}
